package at.ac.tuwien.mg.bean;

import java.io.Serializable;
import java.util.Vector;

public class OfferVector implements Serializable {
	private Vector<Offer> offers;
	
	public OfferVector() {}
	
	public OfferVector(Vector<Offer> offers) {
		this.offers = offers;
	}

	public Vector<Offer> getOffers() {
		return offers;
	}

	public void setOffers(Vector<Offer> offers) {
		this.offers = offers;
	}
	
	public int getSize() {
		return offers.size();
	}
	
	public Offer get(int i) {
		return offers.get(i);
	}
	
	public void setRanking(int index, int ranking) {
		offers.get(index).setRanking(ranking);
	}
}
